<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SHARE INFORMATION FACEBOOK</title>
<style type="text/css">
.share{
	cursor:pointer;
	border:outset 1 px #9C3;
	color:#00F;
	background:url(img.png) repeat-x lef top;
}
</style>
<script language="javascript" type="text/javascript">
	
		Share = {
			facebook:function(purl, ptitle, pimg, text){
			url = 'http://www.facebook.com/sharer/sharer.php?s=100';
			url += '&p[title]=' +encodeURIComponent(ptitle);
			url += '&p[summary]=' + encodeURIComponent(text);
			url += '&p[url]=' + encodeURIComponent(purl);
			url += '&p[images][0]=' + encodeURIComponent(pimg);
			Share.popup(url);
		
			},
		popup:function(url){
			window.open(url,'', 'toolbar = 0, status = 0, width = 626, height = 436');
		}
		};
</script>

</head>

<body >

	<div id="wrappper">
    	<form ><table   width="893" height="302" align="center">
                	<tr >
            	<th bgcolor="#0000CC" colspan="2"> <h3> .: FACEBOOK SHARING :.</h3> </th>
            </tr>
            <tr>
            	<th width="336" align="right" > Trang web chia sẽ</th>
                <td width="535"><input type="text" name="txtUrl" width="400" maxlength="50" size="60" /></td>
            </tr>
            <tr>
            	<th height="29" align="right"> Tiêu đề</th>
                <td><input type="text" name="txtTitle" width="400" maxlength="50" size="60"  /></td>
            </tr>
            <tr>
            	<th height="35" align="right" > Địa chỉ hình ảnh</th>
                <td><input type="text" name="txtImageUrl" width="400" maxlength="50" size="60"  /></td>
            </tr>
            <tr>
            	<th height="122"  align="right"> Mô tả</th>
              <td ><textarea name="txtDesc" cols="70" rows="6" width="400" height="100px" ></textarea></td>
            </tr>
	        <tr>
            	<th colspan="2">
               <a onclick = "Share.facebook(txtUrl.value,txtTitle.value, txtImageUrl.value, txtDesc.value)"><img src="img.png" width="135" height="46" alt="Facebook" /></a>
                </th>
            </tr>
        </table></form>
        abc
     
</div>
</body>
</html>
